package com.example.shardingspheredemo.model.t.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author Andrew Yang
 * @className ClassEntity
 * @description
 * @package com.example.shardingspheredemo.model.t.entity
 * @create 2020-09-14 11:35
 */
@Data
@TableName("t_class")
public class ClassEntity implements Serializable {
    @TableId
    private long id;
    @TableField("COURSE_NAME")
    private String courseName;
    @TableField("STUDY_TIME")
    private Timestamp studyTime;

    public ClassEntity(String courseName, Timestamp studyTime) {
        this.courseName = courseName;
        this.studyTime = studyTime;
    }

}
